package booklib.model;

/**
 * 图书类别实体
 * @author yaer
 *
 */
public class BookType {
	private int id;
	private String bookTypeName;
	private String bookTypeDesc;//图书备注
	
	
	
	public BookType() {
		super();
		// TODO 自动生成的构造函数存根
	}
	
	public BookType(int id,String bookTypeName, String bookTypeDesc) {
		super();
		this.id=id;
		this.bookTypeName = bookTypeName;
		this.bookTypeDesc = bookTypeDesc;
	}

	/**
	 * @return id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id 要设置的 id
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return bookTypeName
	 */
	public String getBookTypeName() {
		return bookTypeName;
	}
	/**
	 * @param bookTypeName 要设置的 bookTypeName
	 */
	public void setBookTypeName(String bookTypeName) {
		this.bookTypeName = bookTypeName;
	}
	/**
	 * @return bookTypeDesc
	 */
	public String getBookTypeDesc() {
		return bookTypeDesc;
	}
	/**
	 * @param bookTypeDesc 要设置的 bookTypeDesc
	 */
	public void setBookTypeDesc(String bookTypeDesc) {
		this.bookTypeDesc = bookTypeDesc;
	}
	
	@Override
	public String toString() {
		return bookTypeName ;
	}
}
